#pragma once

#include "stdafx.h"

class CBaseObject;
class CCamera;


class CObjectManager
{
public:
	CObjectManager();
	~CObjectManager();

private:
	static std::vector<CBaseObject*>	m_pObjects;

public:
	void ObjectRender(LPDIRECT3DDEVICE9 pD3DDevice,CCamera* pCamera);

public:
	static bool RegisterObject(CBaseObject* Object);
	static bool CheckRayCollision(const D3DXVECTOR3& vCameraDir,D3DXMATRIX* mtxCamera);
};

